package com.favccxx.search.domain.conceptmodel;

import com.favccxx.search.domain.common.BaseDoc;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Map;

/**
 * @author favccxx
 */
@Builder
@Data
@AllArgsConstructor
@Document(collection = "us_concept_model")
public class ConceptModel extends BaseDoc {

    @Id
    private String id;

    @Indexed(unique = true)
    private String code;

    private String name;

    private String type;

    private String projectId;

    private String description;

    private Map<String, String> modelFields;

    @Tolerate
    public ConceptModel() {
    }

}
